<?xml version="1.0" encoding="UTF-8"?>
<validateThis xsi:noNamespaceSchemaLocation="http://www.validatevariables.org/validateThis.xsd"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <objectProperties>
        <!-- Boolean: Missing value equates to false, no need to add required rules -->
        <property name="Approved">
            <rule type="boolean" contexts="*" />
        </property>
        <property name="Deleted">
            <rule type="boolean" contexts="*" />
        </property>
		<property name="Archived">
            <rule type="boolean" contexts="*" />
        </property>
        <!-- Strings -->
		<property name="First_Name">
            <rule type="required" contexts="*" />
            <rule type="minLength" contexts="*">
				<param name="minLength" value="1" />
			</rule>
        </property>
		<property name="Last_Name" clientfieldname="Last Name">
            <rule type="required" contexts="*" />
            <rule type="minLength" contexts="*">
				<param name="minLength" value="1" />
			</rule>
        </property>
		<property name="Title">
            <rule type="minLength" contexts="*">
				<param name="minLength" value="1" />
			</rule>
        </property>
        <property name="Email">
            <rule type="required" contexts="*" />
            <rule type="email" contexts="*" />
            <rule type="uniqueUserEmail" contexts="*" />
        </property>
        <property name="Password">
            <rule type="required" contexts="*" />
            <rule type="minLength" contexts="*">
                <param name="minLength" value="1" />
            </rule>
        </property>
        <property name="Phone">
            <rule type="required" contexts="*" />
            <rule type="telephone" contexts="*" />
        </property>
        <property name="Role">
            <rule type="required" contexts="*" />
            <rule type="minLength" contexts="*">
                <param name="minLength" value="1" />
            </rule>
        </property>
        <!-- integers -->
        <property name="User_ID">
            <rule type="required" contexts="*" />
            <rule type="integer" contexts="*" />
        </property>
		<property name="Organization_ID">
            <rule type="required" contexts="*" />
            <rule type="integer" contexts="*" />
        </property>
        <property name="Organization2_ID">
            <rule type="integer" contexts="*" />
        </property>
        <property name="Organization3_ID">
            <rule type="integer" contexts="*" />
        </property>
        
    </objectProperties>
</validateThis>
